package com.tianbo.service.imp;

import com.tianbo.mapper.RolePermissionMapper;
import com.tianbo.model.RolePermission;
import com.tianbo.model.RolePermissionExample;
import com.tianbo.service.RolePermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RolePermissionServiceImpl implements RolePermissionService {

    @Autowired
    RolePermissionMapper rolePermissionMapper;

    public List<RolePermission> selectByExample(RolePermissionExample example){
        return  rolePermissionMapper.selectByExample(example);
    }
    public int deleteByExample(RolePermissionExample example){
        return rolePermissionMapper.deleteByExample(example);
    }
    public int insert(RolePermission record){
        return rolePermissionMapper.insert(record);
    }
}
